package com.wis.traffic.post.service.impl;

import com.wis.traffic.post.base.PostBaseDAOImpl;
import com.wis.traffic.post.service.RoadPileService;
import com.wis.traffic.entity.base.BaseDAO;
import com.wis.traffic.entity.dao.PostTest;
import com.wis.traffic.entity.dao.RoadPile;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class RoadPileServiceImpl implements RoadPileService {
    private String nameSpace = RoadPile.class.getName();
    private BaseDAO<RoadPile, Serializable> baseDao = new PostBaseDAOImpl<>();

    @Override
    public Integer getCountByParams(Map<String, Object> params) {
        return baseDao.getObjectCount(nameSpace,"getRoadPileCount",params);
    }

    @Override
    public List<Object> getRoadPileByParams(Map<String, Object> params) {
        return baseDao.getObject(nameSpace,"selectRoadPileByParams",params);
    }

    @Override
    public List<Object> getPacByParams(Map<String, Object> params) {
        return baseDao.getObject(nameSpace,"selectPacByParams",params);
    }
}
